import request from '@/utils/request'
// gasManage:stockManage:locationManage:list
export function searchLocationApi(query) {
    return request({
        url: '/stock/location/list',
        method: 'get',
        params: query
    })
}
// gasManage:stockManage:locationManage:add
export function addLocation(data) {
    return request({
        url: '/stock/location',
        method: 'post',
        data: data
    })
}
// gasManage:stockManage:locationManage:list
export function getLocationById(id) {
    return request({
        url: '/stock/location/'+id,
        method: 'get'
    })
}
// gasManage:stockManage:locationManage:edit
export function editLocation(data) {
    return request({
        url: '/stock/location',
        method: 'put',
        data: data
    })
}
// 	gasManage:stockManage:locationManage:delete
export function deleteLocation(id) {
    return request({
        url: '/stock/location/delete/'+id,
        method: 'delete'
    })
}
// gasManage:stockManage:locationManage:goodsInfo
export function getLocationGoods(query) {
    return request({
        url: '/stock/goods/goodList',
        method: 'get',
        params: query
    })
}
// gasManage:stockManage:locationManage:exportGoods
export function exportLocationGoods(data){
    return request({
        url: '/stock/goods/export',
        method: 'post',
        data: data
    })
}